package com.luo.backend.dto;

import com.luo.backend.entity.FoodCategory;

/**
 * 分类响应DTO
 */
public class CategoryResponse {
    
    private Long id;
    private String name;
    private Integer sortOrder;
    private Integer status;
    
    // 构造函数
    public CategoryResponse() {}
    
    public CategoryResponse(FoodCategory category) {
        this.id = category.getId();
        this.name = category.getName();
        this.sortOrder = category.getSortOrder();
        this.status = category.getStatus();
    }
    
    // Getters and Setters
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public Integer getSortOrder() {
        return sortOrder;
    }
    
    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
}
